package com.itheima_01.monitest.third.second;

public class FruitTest {
    public static void main(String[] args) {
        Fruit f1 = new Fruit();
        f1.setName("苹果");
        f1.setPrice(3);
        f1.setUnit("斤");
        f1.show();
        Fruit f2 = new Fruit();
        f2.setName("橘子");
        f2.setPrice(5);
        f2.setUnit("斤");
        f2.show();
        Fruit f3 = new Fruit();
        f3.setName("香蕉");
        f3.setPrice(2);
        f3.setUnit("斤");
        f3.show();
        Fruit f4 = new Fruit();
        f4.setName("榴莲");
        f4.setPrice(200);
        f4.setUnit("个");
        f4.show();
    }

}
